﻿using Core;
using Core.Log;
using Core.Utils;
using FT.Tweening;
using Game.UI;
using UnityEngine;

namespace Game.Combat.Damage {
    /// <summary>
    /// 处理伤害
    /// </summary>
    public class DamageSystem {
        public static void Execute(ABSLife life,DamageParam param) {
            if (life == default) {
                return;
            }
            GameObject damageTxt = UIMgr.Ins.CreateWorldUIElement(PrefabNames.TXT_DAMAGE,life.Display.transform.position);
            damageTxt.GetComponent<TxtDamage>().Init(param);
            
            ADbg.LogF("[DamageSystem] 处理了一个伤害");
        }
    }
}